import MockJs from 'mockjs'

MockJs.mock(/\/homaaa/, 'get', homeHeader)



var Arr = []
for (var i = 1; i < 11; i++) {

    Arr.push({
        id: i,
        username: MockJs.mock('@cname'),
        jiuzhen: MockJs.mock('@increment(10000000)'),
        iphone: MockJs.mock('@increment(100000000000)'),
        date: MockJs.mock('@date("yyyy-MM-dd")'),

    })
}


function homeHeader() {

    return {
        code: 200,
        res: '获取成功',
        data: Arr

    }


}